<html>
<head>
    <title>透析助手</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.5.6/css/sm.min.css">
    <link rel="stylesheet" href="__PUBLIC__/css/style.css">
    <link rel="stylesheet" href="__PUBLIC__/css/5s.css">
    <link rel="stylesheet" href="__PUBLIC__/css/6m.css">
    <link rel="stylesheet" href="__PUBLIC__/css/iconfont.css">
</head>
<body>
<div class="div1">
    <div class="IndexHead">
        <if condition="($userInfo['weight_safe'] gt 0) and ($lastWeight['vol'] gt $userInfo['weight_safe'])">
        <div class="TodayNotice active">
            <div class="Bg-W">
                <div class="TodayNoticeContent">
                    <div class="TodayNoticeTitle">
                        <span></span><span>今日提醒</span>
                    </div>
                    <div class="TodayNoticeWord"><{$words.notice}></div>
                    <div class="SafeNotice">
                        <span>已超警戒值</span>
                    </div>
                    <div class="SafeNoticeContent">
                        <span style="padding-left:5px;"><{$lastWeight['vol']-$userInfo['weight_safe']}></span>
                        <i>kg</i>
                    </div>
                </div>
            </div>
        </div>
        <else />
        <div class="TodayNotice">
            <div class="Bg-W">
                <div class="TodayNoticeContent">
                    <div class="TodayNoticeTitle">
                        <span></span><span>今日提醒</span>
                    </div>
                    <div class="TodayNoticeWord"><{$words.notice}></div>
                    <div class="SafeNotice">
                        <span>安全体重值</span>
                    </div>
                    <div class="SafeNoticeContent">
                        <span style="padding-left:5px;"><{$userInfo.weight_safe|default='0'}></span>
                        <i>kg</i>
                    </div>
                </div>
            </div>
        </div>
        </if>
        <button class="Btn-circle LeftTop" type="button" onclick="location.href='<{:U('Blood/index')}>'">
            <span>血压</span>
            <i class="iconfont">&#xe608;</i>
        </button>
        <button class="Btn-circle" type="button" onclick="location.href='<{:U('Food/index')}>'">
            <span>饮食</span>
            <i class="iconfont">&#xe608;</i>
        </button>
        <button class="Btn-circle LeftBottom" type="button" onclick="location.href='<{:U('Weight/index')}>'">
            <span>体重</span>
            <i class="iconfont">&#xe608;</i>
            <span class="WeightNum"><{$lastWeight.vol|default='0'}></span>
        </button>
        <button class="Btn-circle RightBottom" onclick="location.href='<{:U('Medicine/index')}>'">
            <span>用药</span>
            <i class="iconfont">&#xe608;</i>
        </button>
    </div>
    <div class="IndexFoot">
        <div class="IndexFoot-img" onclick="location.href='<{:U('Personal/index')}>'">
            <span></span><if condition="$userInfo['pic'] neq ''">
                <img src="<{$userInfo.pic}>" id="headImg" style="border-radius:50%;" />
            <else />
                <img src="__PUBLIC__/images/PersonalHeadImg.png" id="headImg" />
            </if>
        </div>
        <ul class="IndexFoot-content">
            <li onclick="location.href='<{:U('Drink/index')}>'">
                <span><span> <span>饮水记录<span>
            </li>
            <li onclick="location.href='<{:U('Doctor/lists')}>'">
                <span><span> <span>我的医生<span><i><{$noReadNum|default='0'}></i>
            </li>
            <li>
                <span><span> <a href="<{:U('Cookbook/index')}>"><span>饮食建议<span></a>
            </li>
            <li>
                <span><span> <a href="<{:U('CureRecord/index')}>"><span>透析记录<span></a>
            </li>
        </ul>
    </div>
	</div>
<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.5.7/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='__PUBLIC__/js/myjq.js'></script>
<script>
    $(function() {
        $(".TodayNotice").height($(".TodayNotice").width());
        $(".TodayNotice").css("marginTop", -$(".TodayNotice").width() / 2);
    
	var move = function(e) {
          e.preventDefault && e.preventDefault();
          e.returnValue = false;
          e.stopPropagation && e.stopPropagation();
          return false;
        }
        //取消禁止滚动
        function remliste() {
          window.removeEventListener('touchmove', move);
        }
        //禁止滚动
        function addliste() {
          window.addEventListener('touchmove', move);
        }
		addliste()
		$(".div1").height(window.innerHeight);

        var h_devrice = $(window).height();
        var h_head = $(".head").height()
        var h_PersonalHead = $(".PersonalHead").height()
        $(".OperateList").height(h_devrice - h_head - h_PersonalHead);
    })
</script>
</body>
</html>